﻿using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework;
using Arroguella.Utilities;

namespace Arroguella.Panels
{
    public class LookPanel : ScreenPanel
    {
        #region Constructor

        public LookPanel(Game game) : base(game)
        {
        }

        #endregion

        #region Events
        #endregion

        #region Methods

        /// <summary>
        /// Allows the game component to perform any initialization it needs to before starting
        /// to run.  This is where it can query for any required services and load content.
        /// </summary>
        public override void Initialize()
        {
            SetSizeAndShape(0, 0, 300, 10);

            BackgroundColor = Color.FromNonPremultiplied(75, 75, 75, 255);

            base.Initialize();
        }

        /// <summary>
        /// Allows the game component to update itself.
        /// </summary>
        /// <param name="gameTime">Provides a snapshot of timing values.</param>
        public override void Update(GameTime gameTime)
        {
            base.Update(gameTime);
        }

        /// <summary>
        /// Allows the game component to draw itself
        /// </summary>
        public override void Draw(SpriteBatch spriteBatch)
        {
            // Draw the background
            Utils.DrawFilledRectangle(BackgroundColor, SizeAndShape, spriteBatch, Arroguella.GraphicsDevice);

            // Draw the text
            Utils.DrawString(spriteBatch, Font, LABEL + Text, Color.DodgerBlue, SizeAndShape);
        }

        #endregion

        #region Properties

        /// <summary>
        /// This is what is written after "You see: "
        /// </summary>
        public string Text { get; set; }

        private const string LABEL = @"You see: ";

        #endregion
    }
}
